package com.daixiaowei.repository;

import com.daixiaowei.model.Restaurant;
import org.springframework.stereotype.Repository;

import java.util.ArrayList;
import java.util.List;

@Repository
public class RestaurantRepository {

    private List<Restaurant> restaurantList = new ArrayList<>();

    public List<Restaurant> findAll() {
        return restaurantList;
    }

    public void addRestaurant(Restaurant restaurant) {
        restaurantList.add(restaurant);
    }
}
